package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="XunjianWoTjDTO")
public class XunjianWoTjDTO {

    @NotNull(message = "总数不能为空")
    @ApiModelProperty(value = "区域标识", example="1")
    private String areaId;

    @NotNull(message = "总数不能为空")
    @ApiModelProperty(value = "区域名称", example="片区一")
    private String areaName;

    @NotNull(message = "未开始数量不能为空")
    @Min(value = 0, message = "未开始数量必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "未开始数量必须是整数")
    @ApiModelProperty(value = "未开始数量", example="30")
    private String noBeginNum;

    @NotNull(message = "未完成数量不能为空")
    @Min(value = 0, message = "未完成数量必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "未完成数量必须是整数")
    @ApiModelProperty(value = "未完成数量", example="30")
    private String noFinishNum;

    @NotNull(message = "已完成数量不能为空")
    @Min(value = 0, message = "已完成数量必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "已完成数量必须是整数")
    @ApiModelProperty(value = "已完成数量", example="30")
    private String finishNum;
}